<?php echo md5('12345');?>
<div id="layout-login">
    <!--<fieldset style="margin: 20% auto; width: 350px; height: auto">-->
    <div id="layout-login-container">

        <form action="validaUsuario.php" method="post" enctype="multipart/form-data">
            <legend>Login exemplo 1</legend>
            <label>CPF/CNPJ<br> <input style="width: 100%;" class="txtInput" id="login" type="text" name="usuario" onchange="verifica_digitos(this)" onKeydown="mascara(this, mascaraCpfCnpj);" maxlength="18" required /></label>
            <label>Senha<br> <input style="width: 100%;" class="txtInput" type="password" name="senha" required /></label>
            <div style="display: table; margin-top: 15px; margin-right: 0%">
                <img id="img_captcha" src="captcha/captcha.php" style="display: table-cell;border: 2px solid blue; margin-right: 10px;" />
                <input class="txtInput" type="text" id="captcha" name="captcha" placeholder="<<<Digite os números" style="display: table-cell; width: 150px; margin-top: 10px" required value="" />
                <br><a href="#" onclick="trocar_captcha()">trocar imagem</a>
            </div>
            <input class="inputButton" type="submit" value="Ok" style="margin-top: 10px;float: left;" />
        </form>

        <form name="cadastro" action="index.php?page=cadastro" method="post" enctype="multipart/form-data">
            <input type="hidden" id="usuario2" name="usuario" />
            <span style="margin-top: 10px; float: right">Não é usuário?<a href="javascript:form_submit()" >Cadastrar</a></span>
        </form>	
        <!--</fieldset>-->
        <script src="js/maskTest2.js"></script>
        <script src="js/valida_cpfcnpj.js"></script>
        <script>
            (function() {
                var script = document.createElement('script');
                script.type = 'text/javascript';
                script.src = 'js/valida_cpfcnpj.js';
  
                document.getElementsByTagName('head')[0].appendChild(script);
            })();
            function trocar_captcha(){
                document.getElementById('img_captcha').src = 'captcha/captcha.php';
                document.getElementById('captcha').value=null;
            }
            function form_submit(){
			
                    document.cadastro.submit();
                
            }
        </script>
    </div>
</div>